package com.wunong.smart.commission.client.param;

import com.wunong.smart.domain.platform.common.BaseParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 创建代办
 *
 * @author create by zealot.zt
 */
@Getter
@Setter
@ToString(callSuper = true)
public class CreateCommissionParam extends BaseParam {

    /**
     * 用户信息
     */
    @NotNull(message = "用户编号必填")
    private Long userId;

    /**
     * 用户角色
     */
    @NotNull(message = "用户角色必填")
    private Integer userRole;

    /**
     * 业务编号
     */
    @NotNull(message = "业务编号必填")
    private Long bizId;

    /**
     * 业务类型
     */
    @NotNull(message = "业务类型必填")
    private Integer bizType;

    /**
     * 代办类型
     */
    @NotNull(message = "业务类型必填")
    private String commissionType;

    /**
     * 代办内容
     */
    @NotNull(message = "代办内容必填")
    @Length(message = "代办内容不能超过100个字符", max = 125)
    private String content;

    public static CreateCommissionParam of() {
        return new CreateCommissionParam();
    }

}
